{% extends "base.html" %}
{% block title %}Login{% endblock %}
{% block head %}Login{% endblock %}
{% block content %}

		{% if form.errors %}
			<p class="warning">Your username and password didn't match. Please try again.</p>
		{% endif %}
		
		<p><a href="../">Home</a> | <a href="../register/">Register</a> | <a href="../password_reset/">Forgot password</a></p>
		
		<form method="post" action=".">{% csrf_token %}

			<p><label for="id_username">Username:</label>{{ form.username }}</p>
			<p><label for="id_password">Password:</label>{{ form.password }}</p>

			<p style="display:none"><input type="hidden" name="next" value = "/" /></p>
			
			<p><input type="submit" value="Login" /></p>
			
		</form>
{% endblock %}

